import request from '@/utils/request'

// 获取全部的分组
export const getGroupApi = () => request('/group', 'get')

// 添加分组
export const addGroupApi = (data?: any) => request('/group', 'post', data)

// 修改分组信息
export const updateGroupApi = (data?: any) => request('/group', 'put', data)

// 删除分组
export const deleteGroupApi = (groupId: number) => request(`/group/${groupId}`, 'delete')

// 移动分组到文件夹
export const moveGroupToFolderApi = (data?: any) => request('/group/move', 'put', data)
